package com.wsj.dao;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.wsj.util.page.PageResultSet;
import com.wsj.web.form.admin.ebbmail.EbbEmailManageForm;
import com.wsj.web.vo.homeSite.BmUserType;
import com.wsj.web.vo.homeSite.EbbEmail;

public interface IEbbEmailDao {

	
	public void saveOrUpdate(EbbEmail ebbEmail) throws DataAccessException;
	
	public void delete(EbbEmail ebbEmail) throws DataAccessException;
	
	public EbbEmail loadById(Integer ebbEmailId) throws DataAccessException;
	
	
	/**
	 * 查询条件：发送人类型、接收人类型、标题、接收人ID、发送人ID、
	 * 邮件类型（点对点发或群发）、从时间1、到时间2
	 * */
	public List<EbbEmail> loadList(Short sendType,Short reciverType,String title,Integer reciverId,
			Integer senderId,String mailType,String formDate,String toDate,Short haveRead) throws DataAccessException;
	
	public PageResultSet loadPageResultSet(Short sendType,Short reciverType,String title,Integer reciverId,
			Integer senderId,String mailType,String formDate,String toDate,Short haveRead,Integer page,Integer pageSize)throws DataAccessException;

	public void addEbbEmailDao(EbbEmail ebbEmail)throws DataAccessException;


	public PageResultSet loadEbbEmailListDao(EbbEmailManageForm ebbEmailManageForm)throws DataAccessException;
	
}
